<% title("#{@person.full_name}") %>
<div class="grid_5">
  <div class="module">
    <h2><span>Person Details</span></h2>
    <div class="module-body">
      <p>
        <b>Name:</b> <%= @person.first_name %> <%= @person.last_name %>
      </p>
      <p>
        <b>Address:</b> <%= @person.full_address %>
      </p>
      <p>
        <b>Email:</b> <%= mail_to @person.email, @person.email, :title => "<span class='title'>Email #{@person.first_name} #{@person.last_name}</span> <br/>#{@person.email}" %>
      </p>
      <p>
        <b>Phone:</b> <%= @person.phone %>
      </p>
      <p>
        <b>Status:</b> <%= @person.person_status.name %>
      </p>
      <p>
        <b>Enabled:</b> <%= @person.enabled ? image_tag("icons/accept.png") : image_tag("icons/cancel.png") %>
      </p>
      <p>
        <b>Note:</b> <%= @person.note %>
      </p>
      <%= link_to 'Edit', edit_person_path(@person), :class => 'cta cta-yellow' %>
      <%= link_to 'Disable', @person, confirm: 'Are you sure you want to disable this person?', method: :delete, :class => 'cta cta-red', :style => 'margin-left: 10px;' if @person.enabled %>
      <%= link_to 'Back', people_path, :class => 'cta cta-blue', :style => 'margin-left: 10px;' %>
    </div>
  </div>
  <div style="clear:both;"></div>
</div>